﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using PJ.Business;

namespace PJ.Presentation
{
    /// <summary>
    /// Model for <see cref="IBusinessObject"/> lists
    /// </summary>
    /// <typeparam name="TIBusinessObject">List item object type</typeparam>
    public interface IBusinessObjectListViewModel<TIBusinessObject> : IViewModel
        where TIBusinessObject : IBusinessObject
    {
        /// <summary>
        /// Set a new list
        /// </summary>
        /// <param name="globalIdList">list of new object global ids</param>
        void SetValues (IEnumerable<string> globalIdList);

        /// <summary>
        /// Get the model list content
        /// </summary>
        /// <returns>List of object global ids</returns>
        IEnumerable<string> GetValues();
    }
}
